import {
	post,
	get
} from '@/request/request.js'

/**
 * 获取当前用户的所有兑换订单
 */
export const getProductOrderListByUserId = (state) => get('/productOrder/sureState', {
	state
})

/**
 * 获取当前店铺下面的所有兑换订单
 */
export const getProductOrderListByStoreId = (state) => get('/productOrder/listByStore', {
	state
})

/**
 * 修改订单状态
 */
export const updateProductOrderState = (id, state) => get('/productOrder/state', {
	id,
	state
})